Class ModulePhysicalViewImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ModulePhysicalViewImpl
All Implemented Interfaces:
IPCObject, ModulePhysicalView

public class ModulePhysicalViewImpl extends IPCObjectImpl implements ModulePhysicalView
Information provided by the PKI file:

    \class ModulePhysicalView
    
    \brief Physical view for module.
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • setIsPower

      public void setIsPower(boolean bPower)
      Information provided by the PKI file:
      
          \brief Sets if the power is on or off.
          
          \param bPower, true to set power on, false for off.
          
              
      Specified by:
      setIsPower in interface ModulePhysicalView
      Parameters:
      bPower - Takes in a parameter of bPower
    • isPower

      public boolean isPower()
      Information provided by the PKI file:
      
          \brief Gets if the power is on or off.
          
          \return bool, true if power on, false for off.
          
              
      Specified by:
      isPower in interface ModulePhysicalView
      Returns:
      boolean Returns a boolean
    • setSlotNum

      public void setSlotNum(int slotNum)
      Information provided by the PKI file:
      
          \brief Sets the slot number used by the view.
          
          \param slotNum, slot number to use.
          
              
      Specified by:
      setSlotNum in interface ModulePhysicalView
      Parameters:
      slotNum - Takes in a parameter of slotNum
    • getSlotNum

      public int getSlotNum()
      Information provided by the PKI file:
      
          \brief Gets the slot number used by the view.
          
          \return int, slot number to use.
          
              
      Specified by:
      getSlotNum in interface ModulePhysicalView
      Returns:
      int Returns a int
    • setModuleAdded

      public void setModuleAdded(boolean bAdded)
      Information provided by the PKI file:
      
          \brief Sets weither a module is in the view.
          
          \param bAdded, true if a module is in the view, false if not.
          
              
      Specified by:
      setModuleAdded in interface ModulePhysicalView
      Parameters:
      bAdded - Takes in a parameter of bAdded
    • getModuleAdded

      public boolean getModuleAdded()
      Information provided by the PKI file:
      
          \brief Gets weither a module is in the view.
          
          \return bool, true if a module is in the view, false if not.
          
              
      Specified by:
      getModuleAdded in interface ModulePhysicalView
      Returns:
      boolean Returns a boolean
    • setIsNonRemovable

      public void setIsNonRemovable(boolean bNonRemovable)
      Information provided by the PKI file:
      
          \brief Sets weither it is non-removable.
          
          \param bNonRemovable, true if it can't be removed, false if it can.
          
              
      Specified by:
      setIsNonRemovable in interface ModulePhysicalView
      Parameters:
      bNonRemovable - Takes in a parameter of bNonRemovable
    • isNonRemovable

      public boolean isNonRemovable()
      Information provided by the PKI file:
      
          \brief Gets weither it is non-removable.
          
          \return bool, true if it can't be removed, false if it can.
          
              
      Specified by:
      isNonRemovable in interface ModulePhysicalView
      Returns:
      boolean Returns a boolean
    • setHorizontal

      public void setHorizontal(boolean bHor)
      Information provided by the PKI file:
      
          \brief Used for power buttons, sets if it is a horzontal button or a vertical button.
          
          \param bHor, true if it is a horizontal button, false if it is vertical.
          
              
      Specified by:
      setHorizontal in interface ModulePhysicalView
      Parameters:
      bHor - Takes in a parameter of bHor
    • isHorizontal

      public boolean isHorizontal()
      Information provided by the PKI file:
      
          \brief Used for power buttons, Gets if it is a horzontal button or a vertical button.
          
          \return bool, true if it is a horizontal button, false if it is vertical.
          
              
      Specified by:
      isHorizontal in interface ModulePhysicalView
      Returns:
      boolean Returns a boolean
    • setX1

      public void setX1(int X1)
      Information provided by the PKI file:
      
          \brief Sets leftmost x coordintate.
          
          \param X1, the leftmost x coordintate.
          
              
      Specified by:
      setX1 in interface ModulePhysicalView
      Parameters:
      X1 - Takes in a parameter of X1
    • getX1

      public int getX1()
      Information provided by the PKI file:
      
          \brief Gets leftmost x coordintate.
          
          \return int, the leftmost x coordintate.
          
              
      Specified by:
      getX1 in interface ModulePhysicalView
      Returns:
      int Returns a int
    • setX2

      public void setX2(int X2)
      Information provided by the PKI file:
      
          \brief Sets rightmost x coordintate.
          
          \param X2, the rightmost x coordintate.
          
              
      Specified by:
      setX2 in interface ModulePhysicalView
      Parameters:
      X2 - Takes in a parameter of X2
    • getX2

      public int getX2()
      Information provided by the PKI file:
      
          \brief Gets rightmost x coordintate.
          
          \return int, the rightmost x coordintate.
          
              
      Specified by:
      getX2 in interface ModulePhysicalView
      Returns:
      int Returns a int
    • setY1

      public void setY1(int Y1)
      Information provided by the PKI file:
      
          \brief Sets top y coordintate.
          
          \param Y1, the top y coordintate.
          
              
      Specified by:
      setY1 in interface ModulePhysicalView
      Parameters:
      Y1 - Takes in a parameter of Y1
    • getY1

      public int getY1()
      Information provided by the PKI file:
      
          \brief Gets top y coordintate.
          
          \return int, the top y coordintate.
          
              
      Specified by:
      getY1 in interface ModulePhysicalView
      Returns:
      int Returns a int
    • setY2

      public void setY2(int Y2)
      Information provided by the PKI file:
      
          \brief Sets bottom y coordintate.
          
          \param Y2, the bottom y coordintate.
          
              
      Specified by:
      setY2 in interface ModulePhysicalView
      Parameters:
      Y2 - Takes in a parameter of Y2
    • getY2

      public int getY2()
      Information provided by the PKI file:
      
          \brief Gets bottom y coordintate.
          
          \return int, the bottom y coordintate.
          
              
      Specified by:
      getY2 in interface ModulePhysicalView
      Returns:
      int Returns a int